//package transaction.seata.config;
//
//import io.seata.tm.api.FailureHandler;
//import io.seata.tm.api.GlobalTransaction;
//import lombok.extern.slf4j.Slf4j;
//
///**
// * 脏数据需手动处理，根据日志提示修正数据或者将对应undo删除（可自定义实现FailureHandler做邮件通知或其他
// * @author lr
// */
//@Slf4j
//public class NoticeFailureHandler implements FailureHandler {
//    @Override
//    public void onBeginFailure(GlobalTransaction tx, Throwable cause) {
//        log.error("邮件通知 onBeginFailure：{}，{}", tx, cause);
//    }
//
//    @Override
//    public void onCommitFailure(GlobalTransaction tx, Throwable cause) {
//        log.error("邮件通知 onCommitFailure：{}，{}", tx, cause);
//    }
//
//    @Override
//    public void onRollbackFailure(GlobalTransaction tx, Throwable cause) {
//        log.error("邮件通知 onRollbackFailure：{}，{}", tx, cause);
//    }
//}
